package ffmvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

public class AggManagerPerformanceExtractor implements ResultSetExtractor<AggManagerPerformance> {
	@Override
	public AggManagerPerformance extractData(ResultSet rs) throws SQLException, DataAccessException {
		AggManagerPerformance perf = new AggManagerPerformance();

		perf.setManagerId(rs.getString(1));
		perf.setTotalPoints(rs.getDouble(2));

		return perf;
	}
}
